package cmdbaccountmanagement

import (
	"dfx_cmdb/models"

	"gorm.io/datatypes"
)

type AccountManagement struct {
	models.Models
	Type         string         `gorm:"size:32" json:"type"`
	Platform     string         `gorm:"size:32" json:"platform"`
	PlatformName string         `gorm:"size:32;uniqueIndex" json:"platform_name"`
	Account      string         `gorm:"size:64" json:"account"`
	Password     string         `gorm:"size:64" json:"password"`
	Token        string         `gorm:"size:64" json:"token"`
	Accesskey    string         `gorm:"size:64" json:"accesskey"`
	Accesssecret string         `gorm:"size:64" json:"accesssecret"`
	Comment      string         `gorm:"size:64" json:"comment"`
	OtherInfo    datatypes.JSON `gorm:"size:64" json:"other_info"`
}

func (AccountManagement) TableName() string {
	return "cmdb_account_management"
}
